package com.sc.nft.admin.controller;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sc.nft.annotation.SysMemberLogin;
import com.sc.nft.entity.vo.AdminUserCityServerCentreExtraAwardLogPageListVO;
import com.sc.nft.service.UserCityServerCentreExtraAwardLogService;
import com.sc.nft.sup.PageRequest;
import com.sc.nft.sup.PageResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RequiredArgsConstructor
@RestController
@RequestMapping("/admin/userCityServerCentreExtraAwardLog")
@Api(tags = "城市服务中心额外奖励Log")
public class UserCityServerCentreExtraAwardLogController {

    private final UserCityServerCentreExtraAwardLogService userCityServerCentreExtraAwardLogService;


    @ApiOperation(value = "获取后台记录数据.", notes = "获取后台记录数据.", httpMethod = "POST", produces = MediaType.APPLICATION_JSON_VALUE)
    @PostMapping(value = "/getAdminPageList", produces = MediaType.APPLICATION_JSON_VALUE)
    @SysMemberLogin
    public PageResult<AdminUserCityServerCentreExtraAwardLogPageListVO> getAdminPageList(@RequestBody PageRequest pageRequest) {
        Page<AdminUserCityServerCentreExtraAwardLogPageListVO> adminPageList = userCityServerCentreExtraAwardLogService.getAdminPageList(pageRequest);
        return PageResult.success(adminPageList);
    }

}
